Make it possible to have counters that get incremented
by values other than 1.
void
gsk_profiler_counter_inc (GskProfiler *profiler,
GQuark counter_id)
+{
+ gsk_profiler_counter_add (profiler, counter_id, 1);
+}
+
+void
+gsk_profiler_counter_add (GskProfiler *profiler,
+ GQuark counter_id,
+ gint64 increment)
{
NamedCounter *counter;
if (counter == NULL)
return;
- counter->value += 1;
-
+ counter->value += increment;
}
void
void gsk_profiler_counter_inc (GskProfiler *profiler,
GQuark counter_id);
+void gsk_profiler_counter_add (GskProfiler *profiler,
+ GQuark counter_id,
+ gint64 increment);
void gsk_profiler_timer_begin (GskProfiler *profiler,
GQuark timer_id);
gint64 gsk_profiler_timer_end (GskProfiler *profiler,